package com.assignwork.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @ClassName DailySafeInfo
 * @Description 每日安全告知
 * @Author dujianyu
 * @Date 2023/12/24 17:23
 */
@Data
@TableName("daily_safe_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DailySafeInfo对象", description = "每日安全告知")
public class DailySafeInfo extends TenantEntity {

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    @ApiModelProperty(value = "日期")
    private LocalDate infoDate;

    @ApiModelProperty(value = "信息")
    private String safeInfo;

}
